import request from '@/utils/request'

export default {
  trainModel: (params) => {
    return request({
      url: '/system-evolution/core-process/train',
      method: 'post',
      params
    })
  },

  executePrediction: (params) => {
    return request({
      url: '/system-evolution/core-process/predict',
      method: 'post',
      params
    })
  },

  optimizeModel: (params) => {
    return request({
      url: '/system-evolution/core-process/optimize',
      method: 'post',
      params
    })
  },

  getPredictionResults: (params) => {
    return request({
      url: '/system-evolution/result-review/prediction',
      method: 'get',
      params
    })
  },

  getPreprocessResults: (params) => {
    return request({
      url: '/system-evolution/result-review/preprocess',
      method: 'get',
      params
    })
  },

  getPredictionModels: (params) => {
    return request({
      url: '/system-evolution/result-review/model',
      method: 'get',
      params
    })
  },
  
  getResultAnalysis: (params) => {
    return request({
      url: '/system-evolution/result-review/analysis',
      method: 'get',
      params,
    })
  },

  getResultVisualization: (params) => {
    return request({
      url: '/system-evolution/result-review/visualization',
      method: 'get',
      params
    })
  },

  getDynamicComparison: (params) => {
    return request({
      url: '/system-evolution/result-review/comparison',
      method: 'get',
      params
    })
  },

  getEvolutionRules: (params) => {
    return request({
      url: '/system-evolution/system-analysis/rules',
      method: 'get',
      params
    })
  },

  getHistoricalData: (params) => {
    return request({
      url: '/system-evolution/system-analysis/history',
      method: 'get',
      params
    })
  }
}